import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity({ name: 'channel' })
export class ChannelEntity extends BaseEntity {
    @PrimaryGeneratedColumn()
    id: number;

    @Column({
        type: "int"
    })
    orderId: number;//订单id

    @Column({
        type: "varchar",
        length: 300
    })
    orderSource: string;//订单来源

    @Column({
        type: "varchar",
        length: 300
    })
    channelOrderNo: string;//渠道订单号

    @Column({
        type: 'tinyint',
        default: 1
    })
    status: 0 | 1;//0：禁用，1: 启用
}